package com.ljf.tijian.controller;

import com.ljf.tijian.dto.ApiResponse;
import com.ljf.tijian.dto.CheckmealDetailedDto;
import com.ljf.tijian.pojo.Cidetailedreport;
import com.ljf.tijian.service.CidetailedReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CidetailedreportController {

    @Autowired
    CidetailedReportService cidetailedReportService;

    @RequestMapping("/getdetaileddata")
    public ApiResponse getdetaileddata(@RequestBody Cidetailedreport cidetailedreport){

        return cidetailedReportService.getdetaileddata(cidetailedreport);
    }

    @RequestMapping("/updateReportData")
    public ApiResponse updateReportData(@RequestBody CheckmealDetailedDto checkmealDetailedDto){

        return cidetailedReportService.updatereportdata(checkmealDetailedDto);
    }
}
